import request from '@/utils/request'

export function getTree(params: any) {
  return request({
    url: '/Base_Module/TreeJson',
    method: 'post',
    params,
  })
}
export function getList(data: any) {
  return request({
    url: '/Base_Module/GetPageData',
    method: 'post',
    data,
  })
}
export function getmenuinfo(data: any) {
  return request({
    url: '/Base_Module/getmenuinfo',
    method: 'post',
    data,
  })
}
export function doEdit(data: any) {
  return request({
    url: '/Base_Module/savemenu',
    method: 'post',
    data,
  })
}
export function doDelete(data: any) {
  return request({
    url: `/Base_Module/delmenu`,
    method: 'post',
    data,
  })
}

export function getCurrentUserInfo() {
  return request({
    url: '/Base_User/getCurrentUserInfo',
    method: 'post',
  })
}
